check validity of coordinates (left possibility of no-check)