callback before/after remove