moved clear to the abstarct class