fixing stupid bug.
fixing total number