updated with total count