addSelectColumn function
minor changes