handle ms data