initializing code