replace malloc with array on stack