moved debug print