set up resistance values