generated table; creating grid model