added number of stops to output