correcting minor redundant code from earlier edit