fixed an issue in stat tracking
shortened dayhandling code
further simplified code