refactoring parsing method to match multiple years