debug:
- a.var.hat need to be divided by n
- check ill condition