updated to use PHP 5.4 style arrays