remove redundant register