fix reading lat and lng from function istnead of minifed vars