modify type of role to integer