added comments to prepare