made some adjustment to be consistent with the worksheet