some changes to compare activity