added a curly brace at the end of potential events