fixed a calc