added compose function, add "id" to map in createInfo