getting rid of repititions, added method to check lat lng