whoops, should use mask instead of value here