rename variable: position_with_direction -> position_and_direction