updated delete code
completed delete