setting reference voltage