Using get in place of query