commit wacky function

i added comments to the function