resolved the issue in pagination