after adding pagination