fix var name
fix thread count