deleting last two elements