change some where code