[Upd] struggle with pointers and memory