solve end-of-other