complete functional to analyze complextType, choices too