removed old api and replaced with new version