changes to method in datehelper