use strng for some places where ternary operator was used