replaced by static memory for dynamic