refactored conditional to a ternary conditional thats written out.....nice