improve pos_v1 logic