remove a redundant function call