reverse the order of type params