good point. will move to outside the else.