trim the activity table