Change query method