changed event schema...fixing code