added incrementing of acknr at right time