removed redundant color checks