move should clear the type too