fixed reduce date and added comments