move required_cols variable for testing