changes to latest rust - changing static to const