fixed types of new api funcitons