now roleElements also count the number of role