change hosts function completed but untested