edit function/spread operator