add delete funciton