ignore warning about assignment in condition