added wheatstone calculation