update to base.c