made it clear the memory calculation is actually the maximum memory