Some preparations for coding