change the code for role