added getRolesVal method for better indexing