added variable to calculate the total bread