fine-tuning event firing algorithm