added a total table aswell