untested check for valid coords