discovered that the cauculation takes too much memory