normalizes position