first working api method added