add debug function
first commit