square distance was not initialized