added limit to queries