fix resharper warnings