new method to clear registers