change debug to debugf