added clear method and solved llvm5 warning