get rid of unnecessary ws