removing type checking on mask, snice __proto__ doesn't work