added timing func .....