optimize for waitbar

some masks is not binary
comments