code fixes for lat long