adding option to check for type if color does not exist