reverse the order on data inputs