added a front end or back end sub seq counter to look for possible mids