remove methods of pages without body