memory consumption small fix