now functions are added to the roles