changed code style in role() method