added possibility to fill memory