drop redundant function calls