year var was messed up