placing timing functions