fetch array now working