update pyramid sample