small refactoring of de