might improve calculation time