added R option