correct path comparison