Use hosts.map instead