update_position_field function added