Converting code back to original state the hard way lol