fixed cout var issue