reconfigured api correctly