played around with coordinate transformation