added in voltage divider stuff