added comments to changes i made