got const ref return, nonsense output