small optimize to RLE