eliminating warning: statement not reached