update, work with DC control. with simplified code