added check for const ref