solve event problem