cleanup in Machine code