add state object with location and mask