convert data into integers