api moved in a variable