fixed terrible date hack