preparations for code