comments and average calculation