fix reset and add clear method