removing write-host lines