get cases correct for commit and op numbers