made a successful test loop for an associative array