add validation that x & y are numeric