tidied up the code segment of standalone corr thm