changed date to not pointer