using returned datagypes instead of jsx.