generalizes originalWhitebox