just adding a few comments to the optimization