added santisation to precision setting