try to add pagination and fix syntax