finish the enry