handling timestamps properly