inline, rearrange ops for log