added back commented code changed over ramp speed