trying to track down date bug