removed array syntax bug from work arrays