added end sequence