remove debug function calls