add rev and rle