update to interpolating x,y code