implement $page with $unique