compress similar stops together