changed php5.4 array syntax to support php5.3