Resharper fixes

Fixes suggested by resharper
resharper fixes

Fixes suggested by Resharper
Resharper fixes