add multiple events and add pattern