replaced debug with debugN to get rid of the newlines