fix arrays and connections
fix connections