remove redundant line of code