fix formula bugs
fix stupid bugs