merged page.cpp