rem debug code