removing old api, replacing with new one