correct color ranges and xwn8 formula