updated with deduction and its calculations