convert data in view