exit 1 missing
remove row added
pull out delete code