worked on battery measurement