debug added for html checking