fixed document API syntax