edit function test