removing tuning curve derivative calculations