new stopping functions added