add Role and update candidate function