modified dimContrast, not good enough