added debug print method