working on api syntax