pages defined correctly