commented out the if else statement and added a ternary to do the same thing