percentages corrected, checks for black (h== -1)