remove a redundant function