Made the clear method cleaner