added api-function