use to_string for attribute