add correct fromType