changed array initialisation to be compatible with older versions of php