got the if else working, but only working on the else.