pass some tests
set pointers to null when moving