change factory for role