removed guard round buildPages as its not needed