add decreases for mismatch verification, fix indention