added status reset at midnight