change the query method, (the previous one is wrong)