fast grid transformations