clean code
extract date event