finish deploy code