code for format and running fcorr