change name of debug function to generic