start work on mismatch algorithm