Clarifying the logic based on the direction of the curve