conversion to Pyramids