added hasRole method