reset logic done