added comments to new code