updates columns. this needs some work.