setup to allow pagination