it is the duty of a judge to be impartial when hearing cases