allowing custom events to pass parameters