debug print errors correction