added __ipairs to copied tables