turns the conditional staements to ternaries operators to reduce statement to on line code