fixed c99 error