Revert "simpler clearing function" because it begin1() and end1() from ublas didn't work as I thought they would"

This reverts commit bae3ef7a7f637cfcf5875bd1af485fc348433c0a.