fix syntax typo
add pagination