made indentation consistent
made indentation consistent
fixed indentation
removed unecessary maxEvents line