replaced api