"Resharp" code

ran resharper to clean up the code