modified end formulas