adds ending timer