replacing getPosition function by user_current_position