complete function of extracting columns