add comments to explain the insanity