corrected name of file congaing rem-calc function