added constraints for timestamps