got timeEnd working