calculate user features