modification to getRoleMember() function