added depth in the simple stop class.