grid sdf finally works