add override specifier to avoid deprecated behavior