if statement fix / ternary fix / char fix