refactor tp IA