transform data structure