before the end