update 3D functionality in Cookbook