removing dead space