red-black loop with color