resettle code