dior pattern
fix bug in comparing 2 date
add some debug msg
add some debug msg