organize project and fix a non-const-sized array