debug print added