working ID3 without splitting formula