[MIGRATE] from api 7 to api 8