use name instead of id