working with pyramid