remove target and out