fixed the column as a function implementation