remove function that uses external scaler