fixed dumb problem. have to rewrite functions to better use date class