R# cleanup