fix compile errors due to change to Real (from double)