updated edit function name