some memory management issues raised