start point
change sorting logic
renamed local variable