small fix (pass by reference && const added)