worked on prediction formulas