rename "coefficients" to "weights"