remove redundant function