Design & fix encoding