fixing paginate and renaming variable to force re-create objects