changed edit to deliver the old value into the outputdata.

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>