removed use of clear class