trying to get query method to pass