process event replace value to boolean flag