simplify dropdown code for strength
fix compiler warning