updated analyzing scripts