if query set to foreground, new instance will be created. then it removes old instance.