finish constetalltion function