remove unnecessary debug function