minor change
added compatibility with deactivate function