debug checkFormat()