relate() static_mask and static_mask_handler implemented