onPlane method added