The data formatting should not be done here but before sending data to the library