add color threshold method