removing line causing unwanted output in windows