refactor with >> operator

(lua-5.3.0-work2 only)