debug code added