day hist and bug fixes