dynamic memory delete WIP