added pages_equal utility