process function as inline, added bool bypass state