use name instead of str