added conditional statement
added conditional statement
added ternary