using hosts as a variable