remove space in  connectivity matrix labels