removed old updateunviewedcount method