correct function parameters
apparently the recent api change fixed the "extra pointer" issue