math fixes for years