updated API per request of front-end dev