add user limit to search function