add roles to functions