adding timing stuff