add name to query result