Setting nines functionw