remove unused function calls