memory consumption fixed