cleanup debug statements and example