simplify conditional operation, remove useless parantheses