add another findbypages function