move listcol inside main function