better code for remapCoordinate fix

egine allagi apo switch se if