fix to function declaration