removed attrToString(), which wasn't being used