you don't seem to do anything wih X_mean y_mean and X_stp

I'd use _