change end to finish