             if probSolved[prob._id]
                 continue
             rating += levelScore(level)
+            if user._id == DEBUG_USER_ID
+                console.log "add rating 3 ", prob._id, level, levelScore(level), rating
 
     for week of wasSubmits
         if !weekSolved[week]

        week = weekByTime(r.lastSubmitTime)
        if r.solved == 1 or r.ok == 1
            rating += levelScore(level) * FM_CONST
            activity += activityScore(level, r.lastSubmitTime) * FM_CONST

    for level in ["1А", "1Б"]

    for w of weekOk
        if w<firstWeek
            delete weekOk[w]

    if user._id == DEBUG_USER_ID
        console.log "activity=", activity, "rating=", rating

    activity *= (1 - WEEK_ACTIVITY_EXP) # make this averaged
    return {
