modification to add role
added role functionality