use const ref where possible instead of copy
fix typo