use references for a possible performance gain
Merge pull request #242 from sa2ajj/refs-for-not-copying

use references for a possible performance gain