optimize custom event