api - added function()