working on API creation