added comments to append