Forgot you cant pass an associative array to a function