adjusted the amount of memory consumed