created two versions of api