remove query method.