eliminate nested reset() call