removing unnecessary isAPI check