update a bit with advanced R and java