changed int to double in thresholds of RMarch