add type for array and object