changed date to timestamp