first try at implementing delete