debug and removing ws