analysis: added code for renaming factor columns