correcting coordinates