improve coding style : correctly define array