refine code, add sum of day report