working on api ....