enable to set date optionally.
fix the divide method.