working on the api version 3