bug in determining blacks corrected