detect used column