allow to remove elements by callback