changed some of the runecalc code