wrong code to pick the right value for property