code cleanup

reformatted code with ReSharper