const ref problem