changed the large query to a simple one