remove debug function.