make columnCount calculatable
remove unused code