finished up event tracking method