added "total" to views