edited out clearing registers