added toString() to refs