added getRoles function