got the if,else to work