make sure fill values for shade array are within the correct range