closing the open loops