moved tmp to count - will continue using to track progress