using putEvent() instead