edit update

calling function with all variables