updated normalize_pos