refactored and streamlined match; store maxtime as maxtimebits