changed stats class input and analyze