refactoring by Resharper