fixed steepdesc code