from ended to end