cleaned up plotcylinder procedure