associative array almost working