added deleting last step and deleting last arm step