eng: inproved working with mem, added big chars