added the ability to pull previous capacity
added prevCapacity to remainingCapacity