update to r 3.1