added a ternary for wacky problem on conditionals. commented out the if else statement