little refactoring by Resharper