working flow. but attribute value need to b repeated each time