change input data structure