error when calculating sandwich_total fixed