changed 'Longitude' function