add comment and delete debug function