change input data format