work in progress: coordinate transformation