added debuggin log