added timing statments