refactor to make resharper happy