remove redundant assignment