guide:settle code