remove extra stuff from analysis