refactoring of createBindedTable