changing prediction query