type and data are now reversed