added datetime and modified syntax used for hash