reduce memory usage for get years by using custom yery