adds if statements for the nil longitutde