workign on api