correctly used const references