trying to encode