why didn't I think of this myself !