added error message when coordinates not recognized