refactoring active at insert