stuff before the end