applied column filter, removed unused vars