minor code cleanup from resharper.