added gallon formula