modified theory section and added timing