fixed coordinate detection