added how to handle the data