added fast version of getCols