debug code included