debug cause of very slow calculation