fix BOUND.mask
refactor int events