convent callback array to event array