added select-col function