added limit to pagination