port to lat, and some random