fixed a mostly irrelevant calculation