applying resharper magic