flatten targets