Delete Function modified 3