added the delete functionatily