various profile processing code added for phenomenon corpus analysis