clean the index
define pages