code role value change