clone inputdata for safe manipulations