correct function
add hostname way