changed network to use floats