delete max working as intended (hopefully)