fixed the function declaration

some arguments have been removed in exposing it to the perl side