fixed the neg counting