made get years function private, moved to end of file