initialize code