on_set method added in factory module