added const to toString