try encode decode trick