Changed again clear function