adding RCpp stuff