rename yearPtr to year for simplicity's sake.