added R thing and updates