updating geometry.c