fixed bug with overloading 'time'