work on pagetype lookup