changed naming of debug print function