add decomposition two for loop usage