added timing
inlined them