renamed init_geometry