fix precedence
cleanup log result