add write summary and compare with re not string