finish setting function.