updated edit to use remoteedit