added comments to a and fixed b