updated running method