handle edge of column and file scenario