implementing fuel gauge