added debug function (for science purposes only!)