made event array limited to a max size of 10