added tostring snippet