fixed but in c array allocation