implement edit func