clean up registers too