removing all "left tails" of S2W code