detect the end

can detect the end.