removes function call on api function