about to modify gen_tile.cpp