updates to date.c