added block event handler