now we can encode