updated math model