set response values from array