added limit to search of database