host edit func added