error log only showed 'array'