add pyramid procedure