update network for mnist test case