updated userpain formula; changed userpain sum to userpain average