fixed a few things surrounding analyses