added in console log for ternary operator