memory size param added