remove redundant function call