neuron grid in double instead of float