create a custom query instead of using built in find method