added toSTring and tomap methods