Changed the inline clear method