fixed also nim.c to match the new function declaration