finished department weekly mail, refactored performance problem