bugfix (uninitialized constant R2)