remove a redundant assignment