added script to update and delete