 					}
 
 					if (networkConfigGPU.sim_with_conductances) {
-						short int connId = runtimeDataGPU.connIdsPreIdx[cum_pos + wtId];
+						short int connId = runtimeDataGPU.connIdsPreIdx[cum_pos+wtId];
 						if (type & TARGET_AMPA)
 							AMPA_sum += change * d_mulSynFast[connId];
 						if (type & TARGET_NMDA) {
 							if (networkConfigGPU.sim_with_NMDA_rise) {
 								NMDA_r_sum += change * d_mulSynSlow[connId] * networkConfigGPU.sNMDA;
 								NMDA_d_sum += change * d_mulSynSlow[connId] * networkConfigGPU.sNMDA;
-							}
-							else {
+							} else {
 								NMDA_sum += change * d_mulSynSlow[connId];
 							}
 						}


	// update all group state (i.e., concentration of neuronmodulators)
	// currently support 4 x 128 groups
	kernel_groupStateUpdate << <4, NUM_THREADS >> >(simTimeMs);
	CUDA_GET_LAST_ERROR("Kernel execution failed");
}


	}

	// allocate external 2+ms firing table
	if(allocateMem) {
		void* devPtr;
		CUDA_CHECK_ERRORS(cudaMalloc((void**)&dest->extFiringTableD2, sizeof(int*) * networkConfigs[netId].numGroups));
		CUDA_CHECK_ERRORS(cudaMemset(dest->extFiringTableD2, 0 /* NULL */, sizeof(int*) * networkConfigs[netId].numGroups));
