add allocate mem by hand