as this array is generated multiple times in the same page, it would be better to factorize this code in a private method