finish setting logic