remove tabs and debug function