modify viewed_by check part