included debug function