bug fix

add comment and delete debug function