added pattern for date