remove static memory