before datagrid refactoring