fixed a savings problem