Can you either rename r and q, or define them somewhere in the code (i.e. a comment)