code & setting arranged