Made changes to if statement. Something wrong with nodes