before and after comparison added