add function to convert data to llama format