added conditional on greyscale for class selector