update added role function