added coin cell battery and changed code for it