added default value for memory_size