removed precalculated functions