removed superfluous if statement that did nothing