clean up stream in arithmetic class