use minimum to check whether data is single color