merged run and sub