commented debugging function