add delete funtion