add delete function via array filter