before event problem solved