used wrong c string compare, fixed it