removes hidden columns

hidden columns are now removed from what is displayed.
removed unused function